#include<stdio.h>
#include<stdlib.h>
union data
{
	int n;
	char ch;
	short m;
};
int main()
{
	union data a;
	printf("%d,%d\n",sizeof(a),sizeof(union data));
	a.n=0x40;
	printf("%X, %c, %hX\n",a.n,a.ch,a.m);
	a.ch='9';
	printf("%X, %c, %hX\n",a.n,a.ch,a.m);
	a.m=0x2059;
	printf("%X, %c, %hX\n",a.n,a.ch,a.m);
	a.n=0x3E25AD54;
	printf("%X, %c, %hX\n",a.n,a.ch,a.m);
	system("pause");
	return 0;
}
